import './App.less';
import {
  BrowserRouter as Router, Route, Switch, Redirect
} from 'react-router-dom'

// 组件
import { Login } from './pages/Login';
import { Home } from './pages/Home';
import { LayoutContent } from './pages/Layout'
import { NotFound } from './pages/NotFound';
const App = () => (
  <Router>
    <Switch>
      <Redirect exact from="/" to="/home"></Redirect>
      <Route path="/home" component={LayoutContent}></Route>
      <Route exact path="/login" component={Login}></Route>
      <Route component={NotFound}></Route>
    </Switch>
  </Router>
);

export default App;